﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Test.Compare
{
    public class BSType : FlagBase<char>
    {
        #region 管理类

        private class BSTypeManager : FlagManager<BSType, char>
        {
            internal BSTypeManager()
                : base()
            { }
        }

        #endregion

        #region 静态成员

        static BSType()
        {
            Manager = new BSTypeManager();
        }

        /// <summary>
        /// 管理器
        /// </summary>
        public static readonly FlagManager<BSType, char> Manager;

        #endregion

        #region 值定义

        /// <summary>
        /// 买入
        /// </summary>
        public static readonly BSType Buy = new BSType('B');

        /// <summary>
        /// 卖出
        /// </summary>
        public static readonly BSType Sell = new BSType('S');

        /// <summary>
        /// 申购
        /// </summary>
        public static readonly BSType Apply = new BSType('A');

        /// <summary>
        /// 赎回
        /// </summary>
        public static readonly BSType Redeem = new BSType('R');

        #endregion

        #region ctor
        private BSType(char bs)
            : base(bs)
        { }
        #endregion
    }

}
